package com.lncg.entity;

import java.math.BigInteger;

/**
 * 设备接收数据实体类
 */
public class DeviceReceiveData {
    
    private Long id;
    private String instructionId;     // 指令编号
    private Integer instructionType;  // 指令类型
    private String imei;              // 设备IMEI
    private String meterCode;         // 表号
    private String sim;               // SIM卡号
    private String vendorCode;        // 厂家代码
    private Integer commMethod;       // 通讯方式
    private Integer unitCode;         // 计量单位
    private Integer deviceType;       // 设备类型
    private Integer caliberCode;      // 口径代码
    private Integer protocolVer;      // 协议版本
    private Integer signalLevel;      // 信号强度
    private Integer onlineState;      // 在线状态
    private String batteryVoltage;    // 电池电压
    private String positiveData;      // 正累计数据
    private String negativeData;      // 负累计数据
    private String onlineInterval;    // 上线间隔代码
    private Integer retryCount;       // 重发次数
    private Integer meterStatus;      // 表状态
    private String rawFrame;          // 原始报文
    private Long depotId;             // 所属用户ID
    private String crc16;             // CRC校验码
    private String reciveTime;        // 接收时间

    // 构造函数
    public DeviceReceiveData() {}

    // Getter和Setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInstructionId() { return instructionId; }

    public void setInstructionId(String instructionId) {
        this.instructionId = instructionId;
    }

    public Integer getInstructionType() {
        return instructionType;
    }

    public void setInstructionType(Integer instructionType) {
        this.instructionType = instructionType;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getMeterCode() {
        return meterCode;
    }

    public void setMeterCode(String meterCode) {
        this.meterCode = meterCode;
    }

    public String getSim() {
        return sim;
    }

    public void setSim(String sim) {
        this.sim = sim;
    }

    public String getVendorCode() {
        return vendorCode;
    }

    public void setVendorCode(String vendorCode) {
        this.vendorCode = vendorCode;
    }

    public Integer getCommMethod() {
        return commMethod;
    }

    public void setCommMethod(Integer commMethod) {
        this.commMethod = commMethod;
    }

    public Integer getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(Integer unitCode) {
        this.unitCode = unitCode;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getCaliberCode() {
        return caliberCode;
    }

    public void setCaliberCode(Integer caliberCode) {
        this.caliberCode = caliberCode;
    }

    public Integer getProtocolVer() {
        return protocolVer;
    }

    public void setProtocolVer(Integer protocolVer) {
        this.protocolVer = protocolVer;
    }

    public Integer getSignalLevel() {
        return signalLevel;
    }

    public void setSignalLevel(Integer signalLevel) {
        this.signalLevel = signalLevel;
    }

    public Integer getOnlineState() {
        return onlineState;
    }

    public void setOnlineState(Integer onlineState) {
        this.onlineState = onlineState;
    }

    public String getBatteryVoltage() {
        return batteryVoltage;
    }

    public void setBatteryVoltage(String batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }

    public String getPositiveData() {
        return positiveData;
    }

    public void setPositiveData(String positiveData) {
        this.positiveData = positiveData;
    }

    public String getNegativeData() {
        return negativeData;
    }

    public void setNegativeData(String negativeData) {
        this.negativeData = negativeData;
    }

    public String getOnlineInterval() {
        return onlineInterval;
    }

    public void setOnlineInterval(String onlineInterval) {
        this.onlineInterval = onlineInterval;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public Integer getMeterStatus() {
        return meterStatus;
    }

    public void setMeterStatus(Integer meterStatus) {
        this.meterStatus = meterStatus;
    }

    public String getRawFrame() {
        return rawFrame;
    }

    public void setRawFrame(String rawFrame) {
        this.rawFrame = rawFrame;
    }

    public Long getDepotId() {
        return depotId;
    }

    public void setDepotId(Long depotId) {
        this.depotId = depotId;
    }

    public String getCrc16() {
        return crc16;
    }

    public void setCrc16(String crc16) {
        this.crc16 = crc16;
    }

    public String getReciveTime() {
        return reciveTime;
    }

    public void setReciveTime(String reciveTime) {
        this.reciveTime = reciveTime;
    }

    @Override
    public String toString() {
        return "DeviceReceiveData{" +
                "id=" + id +
                ", instructionId='" + instructionId + '\'' +
                ", instructionType=" + instructionType +
                ", imei='" + imei + '\'' +
                ", meterCode='" + meterCode + '\'' +
                ", sim='" + sim + '\'' +
                ", vendorCode='" + vendorCode + '\'' +
                ", commMethod=" + commMethod +
                ", unitCode=" + unitCode +
                ", deviceType=" + deviceType +
                ", caliberCode=" + caliberCode +
                ", protocolVer=" + protocolVer +
                ", signalLevel=" + signalLevel +
                ", onlineState=" + onlineState +
                ", batteryVoltage='" + batteryVoltage + '\'' +
                ", positiveData='" + positiveData + '\'' +
                ", negativeData='" + negativeData + '\'' +
                ", onlineInterval=" + onlineInterval +
                ", retryCount=" + retryCount +
                ", meterStatus=" + meterStatus +
                ", rawFrame='" + rawFrame + '\'' +
                ", depotId=" + depotId +
                ", crc16='" + crc16 + '\'' +
                ", reciveTime=" + reciveTime +
                '}';
    }
}
